import java.util.Scanner;

public class R2 {
    public static void main(String[] args) {
        //New一个Scanner对象
        Scanner scanner = new Scanner(System.in);
        //从键盘接收字符串
        String str = scanner.nextLine();
        //删除首尾空
        str = str.trim();
        //英文句子以空格作为单词标记
        String[] array = str.split(" ");
        //分割后的数组长度即为单词的个数
        System.out.println("个数为：" + array.length + "个，分别是：");
        //输出分割后的单词
        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
    }
}